fix(sync): offload tool-result images at ingest - #1729
Conversation
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
|
Kind of makes me think that this should be the default for new archives |
roborev: Combined Review (
|
roborev: Combined Review (
|
roborev: Combined Review (
|
Formatted tool output renders retained Codex PNG results between surrounding text and keeps large payloads within the output pane. Image-only results render as images, and Raw keeps retained inline results available for inspection. The frontend projects retained input_image data URIs for PNG, JPEG, WebP, and GIF through the existing Markdown renderer and asset resolver. Migrated asset references keep their current behavior. Unsupported media, malformed blocks, and remote URLs remain stored text. The change stays in ToolBlock and its display helper, with no backend, storage, configuration, or locale changes. PR #1729 covers ingest-time offload. This change covers retained inline images in Keep mode. The reproduction came from #1735. It measured 10,812,829 pixels of horizontal scroll in a 1,623 pixel box, with zero image elements. Focused tests and Chromium proof cover the change and browser smoke tests confirm the fix. Closes #1735 Co-authored-by: Rod Boev <rodboev@users.noreply.github.com>
The tool output coverage added on main expected direct asset URLs. Verify asset requests and rendered blob URLs so it covers the image loading behavior introduced by this branch.
5e1f3b6 to
51dd038
Compare
This comment has been minimized.
This comment has been minimized.
Check authenticated asset fetches and decoded blob images in the browser instead of expecting direct asset URLs. Wait for the worker to record a heartbeat failure before returning the independent parser error, so the race-detector test consistently exercises both failures together.
roborev: Combined Review (
|
When you set
tool_result_images = "offload", AgentsView moves supported tool-result images into its asset store during ingestion and keeps readable references in the archive. New sessions retain image access without storing image bytes inside tool-result text.The setting applies to new and resynced sessions, incremental updates, and late tool results. AgentsView publishes each asset before saving its reference, and keeps the inline image if publication fails. The Settings control accepts
offload, and existing inline images can be moved withagentsview db migrate --images.Refs #1718 (slice 3b)